package com.adinnet.api.order.service;

import com.adinnet.api.order.model.Order;
import com.adinnet.api.order.model.vo.OrderDetailsResp;
import com.adinnet.api.order.model.vo.OrderReq;
import com.adinnet.api.order.model.vo.OrderResp;
import com.adinnet.core.JsonResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-03
 */
public interface OrderService extends IService<Order> {

    JsonResult createOrder(OrderReq orderReq, HttpServletRequest request);

    Page<OrderResp> orderList(Integer childId, Integer page, Integer limit);

    OrderDetailsResp orderDetails(String orderNo);
}
